//
//  KDHomeRequestTool.m
//  PublicSentimentMonitorSystem
//
//  Created by 魏强 on 15/5/28.
//  Copyright (c) 2015年 魏强. All rights reserved.
//  进行首页网络请求的工具

#import "KDHomeRequestTool.h"
#import "KDBaseTool.h"
#import "KDHomePagefindAllTypeResult.h"
#import "KDHomePageFindAllTypeParam.h"
#import "KDHomeListPageGetMonitorWebListParam.h"
#import "KDHomeListPageGetMonitorWebListResult.h"
#import "KDHomeListPageCollectParam.h"
#import "KDHomeListPageCollectResult.h"
#import "KDHomeListPageUnCollectResult.h"
#import "KDHomeListPageUnCollectParam.h"
@implementation KDHomeRequestTool
+ (void)getAllTypeListWithParam:(KDHomePageFindAllTypeParam *)param success:(void (^)(KDHomePagefindAllTypeResult *responseObejct))success failure:(void(^)(NSError *error))failure{
    NSString *url = ServerActionAddr;
    [KDBaseTool get:url param:param resultClass:[KDHomePagefindAllTypeResult class] success:success failure:failure];
}
+ (void)getMonitorWebListWithParam:(KDHomeListPageGetMonitorWebListParam *)param success:(void(^)(KDHomeListPageGetMonitorWebListResult *responseObejct))success faiure:(void(^)(NSError *error))failure{
    NSString *url = ServerActionAddr;
    [KDBaseTool get:url param:param resultClass:[KDHomeListPageGetMonitorWebListResult class] success:success failure:failure];
}
/**
 *  点击收藏发送的请求
 */
+ (void)sendCollectDataWithParam:(KDHomeListPageCollectParam *)param success:(void(^)(KDHomeListPageCollectResult *responseObejct))success faiure:(void(^)(NSError *error))failure{
    NSString *url = ServerActionAddr;
    [KDBaseTool get:url param:param resultClass:[KDHomeListPageCollectResult class] success:success failure:failure];
}
/**
 *  点击取消收藏发送的请求
 */
+ (void)sendUnCollectDataWithParam:(KDHomeListPageUnCollectParam *)param success:(void(^)(KDHomeListPageUnCollectResult *responseObejct))success faiure:(void(^)(NSError *error))failure{
    NSString *url = ServerActionAddr;
    [KDBaseTool get:url param:param resultClass:[KDHomeListPageUnCollectResult class] success:success failure:failure];
}
@end
